/* IP VERSION TO USE */
#define IP_VERSION 	4

/* TOS values */
#define NORMAL 		0

/* TRANSPORT PROTOCOL CODES */
#define TCP_PROTO 	6
#define UDP_PROTO 	17
#define ICMP_PROTO 	1

struct ipheader {
	unsigned char header_length:4, version:4;
	unsigned char TOS;								// type of service
	unsigned short int total_length;
	unsigned short int id;
	unsigned short int offset;						// fragment offset
	unsigned char TTL;
	unsigned char proto;					// TCP, UDP, ICMP
	unsigned short int checksum;
	unsigned int src;
	unsigned int dst;
}__attribute__ ((packed));

unsigned short getid(char* sock_message);
